package com.kfm.system.mapper;

import com.kfm.common.domain.entity.Menu;
import com.kfm.common.domain.entity.Role;
import com.kfm.common.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsernameAndPassword(String username, String password);

    List<User> selectAll();

    User selectByUsername(String username);

}